import CrudService from '../global/CrudService'

let instance = null

// 后端路径
const prefix = 'taskSupervise'
class Service extends CrudService {
  constructor() {
    super(prefix)
    return instance || this
  }

  static getInstance() {
    if (!instance) {
      instance = new Service()
    }
    return instance
  }

  getList = async (query={}) => {
    return this.get(`${prefix}/queryTaskSuperviseWarnList`, query)
  }
}

export default Service.getInstance()
